


'''#用于加密的相关操作
import hashlib
m = hashlib.md5()
m.update(b"hello")
print(m.hexdigest())
m.update(b"it's me")
m.update("it's me".encode(encoding='utf-8')
print(m.hexdigest())
m.update(b"hahahahahhahaha")
print(m.hexdigest())

m2 = hashlib.md5()
m2.update(b"helloit's me")
print(m2.hexdigest())

s2 = hashlib.sha1()#sha512（）更好
s2.update(b"helloit's me")
print(s2.hexdigest())'''



#内部对我们创建key和内容在进行处理然后加密
import hmac
h = hmac.new(b'12345','a你是250'.encode(encoding='utf-8'))
print(h.digest())
print(h.hexdigest())

